//
//  RectangleProgressView.h
//  矩形进度条
//
//  Created by 田涛 on 2017/9/27.
//  Copyright © 2017年 Lemon. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger ,RectangleProgressViewState) {
    /** 赢*/
    RectangleProgressViewStateWin  = 1,
    /** 输*/
    RectangleProgressViewStateLose = 2,
};

typedef NS_ENUM(NSInteger ,RectangleProgressViewStandPoint) {
    /** 正方*/
    RectangleProgressViewStandPointPositive = 1,
    /** 反方*/
    RectangleProgressViewStandPointReverse  = 2,
};


@interface RectangleProgressView : UIView

/**
 *  @param frame      视图大小
 *  @param progress   进度
 *  @param standpoint 立场 (正方 or 反方)
 *  @param finish     是否结束
 *  @param state      赢或输
 */
- (instancetype)initWithFrame:(CGRect)frame
                     progress:(CGFloat)progress
                   standpoint:(RectangleProgressViewStandPoint)standpoint
                   isFinished:(BOOL)finish
                  isWinOrLose:(RectangleProgressViewState)state;

@end
